package cn.iluwen.airline.Entities;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Flight {
    private String flightId;               // 航班ID，主键，使用UUID
    private String flightNumber;           // 航班号，如CA1234
    private String departureAirportId;     // 出发机场ID，外键
    private String arrivalAirportId;       // 到达机场ID，外键
    private LocalDateTime departureTime;   // 计划起飞时间
    private LocalDateTime arrivalTime;     // 计划到达时间
    private BigDecimal economyPrice;       // 经济舱票价
    private BigDecimal businessPrice;      // 商务舱票价
    private Integer totalEconomySeats;     // 经济舱总座位数
    private Integer totalBusinessSeats;    // 商务舱总座位数
    private String status;                 // 航班状态：计划中(scheduled)、延误(delayed)、取消(cancelled)、已完成(completed)
} 